feat(problem): MAT-585 — 도구 toolbar New version 교체#319
Closed
b0nsu wants to merge 1 commit into
Closed
Conversation
- ProblemDrawingToolbar: floating 캡슐 toolbar 신설. 펼침/축소 (229×62 / 62×62), Undo/Redo/Pen/Eraser, primary-200 selected. - 4 모서리 snap: 1초 long-press 후 drag. 3×3 zone 분할에서 모서리 zone 안 release 시에만 corner 변경, 그 외엔 원래 모서리로 복귀. - 자동 collapse: DrawingCanvas onStrokeStart 시 collapsed=true, collapsed 단일 버튼 탭으로 expand. - ProblemScreen: Header / BottomActionBar 사이 본문 wrapper 분리, toolbar overlay 영역 한정 (X 버튼·액션바 충돌 회피). - drawing.tsx: pan.onBegin stylus 진입 시점 onStrokeStart 호출 (textMode 분기 다음, 그리기 모드에서만 fire). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced May 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Linear
Changes
apps/native/src/features/student/problem/components/ProblemDrawingToolbar.tsx
Gesture.Pan.activateAfterLongPress(1000)+ 화면 3×3 zoneapps/native/src/features/student/problem/screens/ProblemScreen.tsx
toolbarCollapsedstate, DrawingCanvasonStrokeStart→collapsed=trueapps/native/src/features/student/scrap/utils/skia/drawing.tsx
onStrokeStart콜백 prop 추가, pan.onBegin stylus 통과 후 호출Testing
pnpm typecheck통과Risk / Impact
onStrokeStartprop 추가drawing.tsx6줄을 새 패키지 (@repo/pointer-native-drawing)DrawingCanvasProps+useRnghPanAdapter의onInteractionBegin안으로 옮기는 follow-up 필요. ProblemScreen import 2줄 갱신.